//
//  BaseController.h
//  NBANews
//
//  Created by Liccon Chang on 11-1-10.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NetworkUtil.h"
#import "SystemUtil.h"
#import "RegexParse.h"
#import "RowData.h"
#import "GameInfo.h"
#import "ColumnView.h"
#import "Constant.h"

#define StateBarHeight 20
#define NarBarHeight 44
#define AdBarHeight 44
#define TabBarHeight 49

@interface BaseController : UIViewController {
	NetworkUtil* network;
	UIView* Advertisements;
	NSInteger AdvertisHeight;
	GameInfo* topGameInfo;
	UILabel* waiteLabel;
}

@property (nonatomic, retain) GameInfo* topGameInfo;
@property (nonatomic, retain) UIView* Advertisements;
@property (nonatomic) NSInteger AdvertisHeight;

- (id)initWithGameInfo:(GameInfo*) aInfo;

- (NetworkUtil*)submitURL:(NSString *)address withOperation:(NSString *)operation;
- (void)completeFetch:(NetworkUtil *)obj;
- (void)errorFetch:(NetworkUtil *)obj;

- (void) InsertAdvertisementsView;
- (void) ShowWaiteLabel;
- (void) HideWaiteLabel;
- (UIView*) CreateColumnView:(RowData*) aRowData ColWidth:(int) aWidth;
- (UIView*) CreateGameInfoView:(GameInfo*) aInfo;
- (void) addNavExit;
- (void) addNavBack;
- (void) Exit;
- (void) Back;

@end
